package com.my.chapter18;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.io.*;
import java.util.*;

public class practice8 {
    public static void main(String[] args) throws IOException {
        CommandLine.main(new String[]{".\\src\\com\\my\\chapter18\\practice8.java"});
    }
}

class CommandLine{
    public static void main(String[] args) throws IOException {
        if(args.length != 1) {
            System.err.println(
                    "Usage: java CommandLine file");
            return;
        }
        List<String> list = practice7.read(args[0]);
        for(ListIterator<String> it =
            list.listIterator(list.size()); it.hasPrevious();)
            System.out.println(it.previous());
    }
}

